package com.example.shop_front_api.mapper;
import com.example.shop_front_api.entity.Members;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员mapper类
 */
@Mapper
public interface MembersMapper {
    //新增会员
    public int insertMembers(Members members);
    //根据用户名查询账号信息
    public Members getMembersByUsername(String username);
    //修改密码
    public int updatePassword(String username, String password);
    //修改支付密码
    public int updatePayPassword(int id, @Param("payPassword") String payPassword);
    //根据id获取
    public Members getMembersById(int id);

    //根据用户名查询账号信息
    public Members getMembersByMobile(String username);
    //更新手机号码
    public int updateMobile(int id, @Param("mobile") String mobile);



}
